package com.ge.modules.api.service.impl;

import com.ge.modules.api.service.TbPostService;
import com.ge.modules.dao.TbPostDao;
import com.ge.modules.entity.TbPostEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TbPostServiceImpl implements TbPostService {
    @Autowired
    private TbPostDao postDao;

    @Override
    public TbPostEntity queryObject(Integer id) {
        return postDao.queryObject(id);
    }

    @Override
    public TbPostEntity queryByObject(TbPostEntity tbPostEntity) {
        return postDao.queryByObject(tbPostEntity);
    }

    @Override
    public List<TbPostEntity> queryList(Map<String, Object> map) {
        return postDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return postDao.queryTotal(map);
    }

    @Override
    public void save(TbPostEntity post) {
        postDao.save(post);
    }

    @Override
    public void update(TbPostEntity post) {
        postDao.update(post);
    }

    @Override
    public void delete(Integer id) {
        postDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids) {
        postDao.deleteBatch(ids);
    }

}
